import axiosData from "@/api/axios";
export default {
  /**
   * @description: 获取备件类型管理 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {componyId: 1} *
   * @return {Array}
   */
  queryPageList(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/sparePartType/queryPageList", params);
  },
  /**
   * @description: 查询所有备件类型 *代表必填
   * @return {Array}
   */
  queryAll(params) {
    return axiosData.get("/v3/agricultural-equipment/v1/sparePartType/queryAll", params);
  },
  /**
   * @description: 新增备件类型管理
   * @param {String} sparePartTypeName *
   * @param {String} description
   * @return {Object}
   */
  add(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/sparePartType/add", params);
  },
  /**
   * @description: 编辑备件类型管理
   * @param {Number} sparePartTypeId *
   * @param {String} sparePartTypeCode *
   * @param {String} sparePartTypeName *
   * @param {String} description
   */
  edit(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/sparePartType/edit", params);
  },
  /**
   * @description: 批量删除备件类型管理
   * @param {Object} sparePartTypeCodeList *
   * @return {Object}
   */
  delList(params) {
    return axiosData.post("/v3/agricultural-equipment/v1/sparePartType/delBySparePartTypeCodeList", params);
  }
};
